import Vue from 'vue'
import Router from 'vue-router'
import Home from "../pages/home/Home";
import DESPage from "../pages/DES/DESPage";
import AESPage from "../pages/AES/AESPage";
import SM4Page from "../pages/SM4/SM4Page";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      redirect: '/des',
      children: [
        {
          path: '/des',
          name: "desPage",
          component: DESPage,
        },
        {
          path: '/aes',
          name: "aesPage",
          component: AESPage,
        },
        {
          path: '/sm4',
          name: "sm4Page",
          component: SM4Page,
        },
      ]
    }
  ]
})
